package cn.edu360.day09.utilles;

import com.mchange.v2.c3p0.ComboPooledDataSource;
import org.apache.commons.dbutils.QueryRunner;

/**
 * 数据库的工具类
 */
public class MyDbUtile {
    static ComboPooledDataSource pool = new ComboPooledDataSource();

    /**
     * 链接数据的工具，获取runner对象的
     * @return
     */
    public static QueryRunner getRunner(){
        QueryRunner runner = new QueryRunner(pool);
        return runner;
    }
}
